﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EAF.Core.DataConnections
{
    [AttributeUsage(AttributeTargets.Property,AllowMultiple=false)]
    public class SqlDisplayConnection:Attribute
    {
        private string _sourceName;
        private string _table;
        private string _idColumn;
        private string _displayColumn;
        //private string _idValue;
        // A system of transfering the id value should be found
        public SqlDisplayConnection(string sourceName, string table, string idColumn, string column /*, string idValue*/)
        {
            _sourceName = sourceName;
            _table = table;
            _idColumn = idColumn;
            _displayColumn = column;
           // _idValue = idValue;

        }

        public string SourceName { get { return _sourceName; } set { _sourceName = value; } }
        public string TableName { get { return _table; } set { _table = value; } }
        public string IdColumnName { get { return _idColumn; } set { _idColumn = value; } }
        public string DisplayColumnName { get { return _displayColumn; } set { _displayColumn = value; } }
        //public string IdValue { get { return _idValue; } set { _idValue = value; } }



    }
}
